﻿<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Date"%>
<%@page import="weaver.hrm.User"%>
<%@page import="com.weaver.formmodel.mobile.manager.MobileUserInit"%>
<%@page import="weaver.cowork.CoworkItemMarkOperation"%>
<%@page import="java.util.List"%>
<%@page import="weaver.cowork.CoworkLabelVO"%>
<%@page import="weaver.cowork.CoTypeComInfo"%>
<%@page import="weaver.general.Util"%>
<%@page import="weaver.systeminfo.SystemEnv"%>
<%@page import="java.util.Calendar"%>
<%@page import="weaver.hrm.resource.ResourceComInfo"%>
<%@page import="weaver.hrm.job.JobTitlesComInfo"%>
<%
	User user = MobileUserInit.getUser(request, response);
	String v = new Date().getTime()+"";
	
	// 直接查看他的微博
	/*
		请求地址 /mobilemode/apps/e-cology/blog/getBlogUrls.jsp?opt=viewBlogUrl&viewBlogId={$userid} ，{$userid}：为被查看人用户ID
		  获得被查看人的微博查看页面地址url和他的所有微博数
	
		支持只查看他的微博页面
		链接：appHomepage.jsp?viewBlogId={$userid} ，{$userid}：为被查看人用户ID
	*/
	int viewBlogId = Util.getIntValue(Util.null2String(request.getParameter("viewBlogId")));
	ResourceComInfo resourceComInfo = new ResourceComInfo();
	JobTitlesComInfo jobTitlesComInfo = new JobTitlesComInfo();
	
%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>工作微博</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
   
    <script>
		if(typeof(Mobile_NS) == 'undefined'){
			Mobile_NS = {};
		}
		var userid = "<%=user.getUID()%>";
	</script>
	
    <link rel="stylesheet" href="/mobilemode/apps/e-cology/blog/css/GridTable_wev8.css?v=2016_08_25_01" >
    <link rel="stylesheet" href="/mobilemode/apps/e-cology/blog/css/appHomepage.css?v=2018_06_20_01" >
    
	<script src="/mobilemode/js/zepto/zepto.min_wev8.js?v=2016_08_25_01"></script>
	<script src="/mobilemode/js/zepto/toucher_wev8.js?v=2016_08_25_01"></script>
	<script src="/mobilemode/apps/e-cology/js/fastclick.min_wev8.js?v=2016_08_25_01"></script>
	<script src="/mobilemode/apps/e-cology/js/iscroll-min.js?v=2016_08_25_01"></script>
	<script src="/mobilemode/js/mec/run/form/FCheckbox_wev8.js?v=2016_08_25_01"></script>
	<script src="/mobilemode/apps/e-cology/blog/js/appHomepage.js?v=2018_08_07_01"></script>
	<script src="/mobilemode/apps/e-cology/blog/js/blogLbs.js?v=2016_09_23_01"></script>
    
    <script src="/mobilemode/apps/e-cology/js/position_wev8.js?v=2017_02_24_01"></script>
    
    <script src="/mobilemode/apps/e-cology/blog/js/kindeditor_wev8.js?v=2017_01_22_01"></script>
    <script>
    	function highEditor(remarkid,height){
		    height=!height||height<150?150:height;
		    
				var  items=[
								'justifyleft', 'justifycenter', 'justifyright','forecolor','bold','italic','fullscreen'
						   ];
					 
				 K.createEditor({
						id : remarkid,
						height :height+'px',
						resizeType:1,
						width:'100%',
						uploadJson:'/weaverEditor/jsp/upload_json.jsp',
					    allowFileManager : false,
		                newlineTag:'br',
		                filterMode:false,
						imageTabIndex:1,
						langType : 'en',
		                items : items,
					    afterCreate : function(id) {
							//KE.util.focus(id);
							this.focus();
					    }
		   		});
		}
    </script>
    <style>
	.ke-container{
		z-index: 2;
		max-height:200px;
		overflow-y:hidden;
	}
    </style>
    
</head>
<body>
<input type="hidden" id="currentuserinfo" currentuserid="<%=user.getUID() %>" currentusername="<%=user.getLastname() %>">
<input type="hidden" id="viewBlogId" value="<%=viewBlogId %>" />

<%
	if(viewBlogId > 0) {
	    String blogid = "" + viewBlogId;
%>
<input type="hidden" id="li_2_<%=viewBlogId %>" 
	username="<%=resourceComInfo.getLastname(blogid) %>"
	userimg="<%=resourceComInfo.getMessagerUrls(blogid) %>"
	jbotitle="<%=jobTitlesComInfo.getJobTitlesname(resourceComInfo.getJobTitle(blogid)) %>"
 />
<%
	}
%>

<div id="st-container">
<div class="st-pusher">

	<%
		String css1 = "";
		String css4 = "";
		String cssFooter = "";
		if(viewBlogId > 0) {
		    css1 = "hide";
		    css4 = "currentPanel";
		    cssFooter = "hide";
		} else {
		    css1 = "currentPanel";
		    css4 = "hide";
		}
	%>
	<div id="main-panel" class="<%=css1 %>">
		<div id="NMEC_C67BC88322500001C79A1F3015CE1C9C" class="listContainerWrap">
			<div class="scroll_wrapper">
				<div class="scroll_scroller">
					<div id="pullDown0" class="loading">
						<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
					</div>
					<ul id="listC67BC88322500001C79A1F3015CE1C9C" class="listBlog" swipetype="1" swipe="true"></ul>
					<div class="mec_refresh_loading">
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
					<div id="moreC67BC88322500001C79A1F3015CE1C9C" class="moreData_btn" onclick="pageList(0);">加载更多</div>
					<div id="nodataC67BC88322500001C79A1F3015CE1C9C" class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
				
				</div>
			</div>
		</div>
		<div class="gotop" onclick="moveToTop(0);">
			<div class="left-line"></div>
			<div class="right-line"></div>
		</div>
	</div>
	
	<div id="main-panel-1" class="hide">
		<div class="header">
			<ul class="tab">
				<li groupid="1" class="selected" ctype="myblog">我的微博 <span id="blogCountSpan"></span></li>
				<li groupid="1" ctype="commentOnMe">评论我的</li>
			</ul>
			<div class="btnTopRight" onclick="createBlog(1);"></div>
		</div>
		<div id="NMEC_panel1" class="listContainerWrap">
			<div class="scroll_wrapper">
				<div class="scroll_scroller">
					<div id="pullDown1" class="loading">
						<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
					</div>
					<ul id="listpanel1" class="listBlog" swipetype="1" swipe="true"></ul>
					<div class="mec_refresh_loading">
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
					<div id="morepanel1" class="moreData_btn" onclick="pageList(1);">加载更多</div>
					<div id="nodatapanel1" class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
				
				</div>
			</div>
		</div>
		<div class="gotop" onclick="moveToTop(1);">
			<div class="left-line"></div>
			<div class="right-line"></div>
		</div>
	</div>
	
	<div id="main-panel-2" class="hide">
		<div class="header">
			<ul class="tab">
				<li groupid="2" class="selected" ctype="myAttention">我的关注 <span id="myAttentionSpan"></span></li>
				<li groupid="2" class="" ctype="attentionMe">我的粉丝 <span id="attentionMeSpan"></span></li>
			</ul>
			<div class="btnTopRightMsg" onclick="openRemindMsg();"></div>
			<div class="btnTopRightMsgNum"></div>
		</div>
		<div class="listSearch">
			<form disabledEnterSubmit>
				<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
				<input type="search" onfocus="displayPL()" onblur="showPL()" id="keyword" name="keyword" type="" placeholder="Search..."/>
			</form>
		</div>
		<div id="NMEC_panel2" class="listContainerWrap">
			<div class="scroll_wrapper">
				<div class="scroll_scroller">
					<div id="pullDown2" class="loading">
						<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
					</div>
					<ul id="listpanel2" class="listContainer" swipetype="1" swipe="true"></ul>
					<div class="mec_refresh_loading">
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
					<div id="morepanel2" class="moreData_btn" onclick="pageList(2);">加载更多</div>
					<div id="nodatapanel2" class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
				
				</div>
			</div>
		</div>
	</div>
	
	<div id="main-panel-3" class="hide">
		<div class="header">
		<ul class="tab">
			<li groupid="3" class="selected" ctype="myAttentionReport">关注报表</li>
			<li groupid="3" class="" ctype="myReport">我的报表</li>
		</ul>
		</div>
		<div id="NMEC_panel3" class="listContainerWrap">
					<ul id="listpanel3" class="listContainer" swipetype="1" swipe="true">
						<li>
						<!-- 锁定表格 -->
							<div id="NMEC_C6FB923056600001AE39160C15209800"
								class="GridTableContainer" data-groupsum="0" data-assearch="0"
								data-fixedcolumn="1">
								<div id="gtsearchC6FB923056600001AE39160C15209800" class="gtSearch" style="display: block;">
									<%
									Calendar calendar=Calendar.getInstance();
									int currentMonth=calendar.get(Calendar.MONTH)+1;
									%>
									<div class="gtHeader">
										<ul class="monthTable" currentMonth="<%=currentMonth%>"  >
											<%for(int i=1;i<=currentMonth;i++){
													String monthStr = "&nbsp;&nbsp;&nbsp;&nbsp;";
													String classStr = "";
													if(i<=currentMonth){
														classStr = "searchMonth";
														monthStr = i+"月";
													}
												%>
													<li><div data-value="<%=i %>" class="<%=classStr%><%if(currentMonth==i){%> selected<%}%>"><%=monthStr %></div></li>
												<%}%>
										</ul>
									</div>
								</div>
								<div class="controlHeader"></div>
								
								<!-- --------------- -->
								<div id="myAttentionReport_div" style="position: relative;">
									<div class="scrollerDiv">
										<div class="gtWrap">
											<table class="gtTitle" style="width:100%;">
												<tr class="title_tr complate">
													<td class="beFixedCol" style="width:100px;"></td>
													<td class="reportday" style=""></td>
												</tr>
											</table>
											<div class="gtContentWrap" style="height: 100%;">
												<div class="fixedGtContentWrapMapping" >
												</div>
												<table class="gtContent" style="width: 100%;">
													<tr class="content_tr complate">
														<td class="beFixedCol" style="width:100px;"><span class="field_viewTitle"></span></td>
														<td class="reportvalue" ><span class="field_viewText"></span></td>
													</tr>
												</table>
											</div>
										</div>
										<div class="fixedGtWrap" >
												<div class="fixedGtTitleWrap">
													<table class="gtTitle" style="width: 100%;">
														<tbody>
															<tr class="title_tr">
																<td class="beFixedCol" style="width: 100px;"></td>
															</tr>
														</tbody>
													</table>
												</div>
												<div class="fixedGtContentWrap" style="visibility: visible;">
													<table class="gtContent" style="width: 100%;">
														<tbody>
															<tr class="content_tr complate" dataurl_bind="true">
																<td class=reportvalue ><span  class="field_viewText"></span></td>
															</tr>
														</tbody>
													</table>
												</div>
										</div>
									</div>
									<div class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
								</div>
								<!-- --------------- -->
								
								<div id="myReport_div" style="position: relative;">
									<div class="scrollerDiv">
										<div class="gtWrap">
											<table class="gtTitle" style="width:100%;">
												<tr class="title_tr complate">
													<td class="beFixedCol" style="width:100px;"></td>
													<td class="reportday" style=""></td>
												</tr>
											</table>
											<div class="gtContentWrap" style="height: 100%;">
												<div class="fixedGtContentWrapMapping" >
												</div>
												<table class="gtContent" style="width: 100%;">
													<tr class="content_tr complate">
														<td class="beFixedCol" style="width:100px;"></td>
														<td class="reportvalue" ><span class="field_viewText"></span></td>
													</tr>
												</table>
											</div>
										</div>
										<div class="fixedGtWrap" >
												<div class="fixedGtTitleWrap">
													<table class="gtTitle" style="width: 100%;">
														<tbody>
															<tr class="title_tr">
																<td class="beFixedCol" style="width: 100px;"></td>
															</tr>
														</tbody>
													</table>
												</div>
												<div class="fixedGtContentWrap" style="visibility: visible;">
													<table class="gtContent" style="width: 100%;">
														<tbody>
															<tr class="content_tr complate" dataurl_bind="true">
																<td class=reportvalue ><span  class="field_viewText"></span></td>
															</tr>
														</tbody>
													</table>
												</div>
										</div>
									</div>
								</div>
								
							</div>
							<!-- 锁定表格 -->
						</li>
					</ul>
					<div class="mec_refresh_loading">
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
					<div id="morepanel3" class="moreData_btn" onclick="pageList(3);">加载更多</div>
					<div id="nodatapanel3" class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
		</div>
		<div id="NMEC_panel3_1" class="hide" ></div>
	</div>
	
	<!-- 页面底部标签 -->
	<div id="scroll_footer">
		<nav id="NMEC_C6F99F2AC7E00001D7347D1011C0F560"
			class="tabBarContainer">
		<a href="javascript:void(0);" class="tab-item active" id="C6F99F2AC7E00001F06318A0A4F01729">
			<span class="icon">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar1.gif" class="icon-normal">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar1_b.gif" class="icon-active">
				<div id="bcount" style="display: none;" class="MEC_NumberRemind "></div>
			</span>
			<span class="tab-label">微博主页</span>
		</a>
		<a href="javascript:void(0);" class="tab-item " id="C6F99F53B8200001D83DD140AAC01E52">
			<span class="icon">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar2.gif" class="icon-normal">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar2_b.gif" class="icon-active">
				<div style="display: none;" class="MEC_NumberRemind "></div>
			</span>
			<span class="tab-label">我的微博</span>
		</a>
		<a href="javascript:void(0);" class="tab-item " id="C6F99F68D350000190D711307D801AB7">
			<span class="icon">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar3.gif" class="icon-normal">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar3_b.gif" class="icon-active">
				<div id="attnRemindNum" style="display: none;" class="MEC_NumberRemind "></div>
			</span>
			<span class="tab-label">微博关注</span>
		</a>
		<a href="javascript:void(0);" class="tab-item " id="C6F99F68D350000190D711307D801AC6">
			<span class="icon">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar4.gif" class="icon-normal">
				<img src="/mobilemode/apps/e-cology/blog/imgs/bar4_b.gif" class="icon-active">
				<div style="display: none;" class="MEC_NumberRemind "></div>
			</span>
			<span class="tab-label">微博报表</span>
		</a>
		</nav>
	</div>
	
	<!-- 他人的微博 -->
	
	<div id="main-panel-4" class="<%=css4 %>">
		<div class="header"> 
			<ul class="tab" style="display: none;">
				<li groupid="4" class="selected" ctype="myblog"></li>
			</ul>
			<div class="profile">
				<div>
					<img id="panel4_userimg" src="/messager/images/icon_m_wev8.jpg"/>
				</div>
				
				<div id="panel4_userinfo"></div>
			</div>
			<div id="attnspan"></div>
			<ul class="tbar">
				<li type="wb" class="selected"><span id="blogCount">0</span><div>微博</div></li>
				<li type="gz" ><span id="myAttentionCount" >0</span><div>关注</div></li>
				<li type="fs" ><span id="attentionMeCount">0</span><div>粉丝</div></li>
			</ul>
		</div>
		<div id="listSearch4" class="listSearch hide" >
			<img src="/mobilemode/apps/e-cology/images/searchright_wev8.gif" class="btn"/>
			<input id="keyword4" name="keyword4" type="" placeholder="Search..."/>
		</div>
		<div id="NMEC_panel4" class="listContainerWrap">
			<div class="scroll_wrapper">
				<div class="scroll_scroller">
					<div id="pullDown4" class="loading">
						<span class="pullDownIcon"></span><span class="pullDownLabel">下拉可以刷新</span>
					</div>
					<ul id="listpanel4" class="listBlog" swipetype="1" swipe="true"></ul>
					<div class="mec_refresh_loading">
						<div class="spinner">
							<div class="bounce1"></div>
							<div class="bounce2"></div>
							<div class="bounce3"></div>
						</div>
					</div>
					<div id="morepanel4" class="moreData_btn" onclick="pageList(4);">加载更多</div>
					<div id="nodatapanel4" class="nodata_border"><div class="nodata_content"><div class="nodata_img"></div>没有可显示的数据</div></div>
				
				</div>
			</div>
		</div>
		<div class="gotop" onclick="moveToTop(4);">
			<div class="left-line"></div>
			<div class="right-line"></div>
		</div>
	</div>
	
	<!-- 新建、评论、私评 -->
	<div id="replayPanel" class="hide" tid="" type="" groupid="">
        <table style=" width: 100%; padding-top: 12px; padding-bottom: 12px;">
            <tr>
                <td width="1%"></td>
                <td><textarea id="replayContent" name="replayContent" placeholder="请填写工作微博..." require="" style="padding:0 0;"></textarea></td>
                <td width="2%"></td>
            </tr>
        </table>
        
		<div onclick="useLocation(this)" class="useLocationDiv hide">
			<div class="locationDesc">所在位置</div>
		</div>
		<div class="btnContainer">
			<button class="btn" onclick="doCancel(this)"><img src="/mobilemode/apps/e-cology/blog/imgs/close_blue.gif"/>取消</button>
			<button id="submitBtn" class="btn" action="1" onclick="doSubmit(this);"><img src="/mobilemode/apps/e-cology/blog/imgs/check_white.gif"/>提交</button>
		</div>
	</div>
	
	<div id="remindPanel" class="hide" tid="" type="" groupid="">
        <table style=" width: 100%; padding-top: 18px;font-size:14px;color:#333;" id="remindPanelTb">
        </table>
	</div>
	
	<div id="mapPanel" class="hide" tid="" type="" groupid="">
		<div id="mapDiv"></div>
	</div>
	
</div>
</div>
	</body>
</html>
